GLOBAL.STRINGS.AIP={}


Assets=
{
Asset("ATLAS","images/inventoryimages/popcorngun.xml"),
Asset("ATLAS","images/inventoryimages/incinerator.xml"),
Asset("ATLAS","images/inventoryimages/dark_observer.xml"),
Asset("ATLAS","images/inventoryimages/aip_fish_sword.xml"),


Asset("ATLAS","images/inventoryimages/aip_dou_tech.xml"),
Asset("ANIM","anim/aip_ui_doujiang_chest.zip"),
Asset("ATLAS","images/inventoryimages/aip_doujiang_slot_bg.xml"),
Asset("ATLAS","images/inventoryimages/aip_doujiang_slot_ash_bg.xml"),
Asset("ATLAS","images/inventoryimages/aip_doujiang_slot_electricity_bg.xml"),
Asset("ATLAS","images/inventoryimages/aip_doujiang_slot_fire_bg.xml"),
Asset("ATLAS","images/inventoryimages/aip_doujiang_slot_plant_bg.xml"),
Asset("ATLAS","images/inventoryimages/aip_doujiang_slot_water_bg.xml"),
Asset("ATLAS","images/inventoryimages/aip_doujiang_slot_wind_bg.xml"),
}


PrefabFiles=
{

"aip_vest",


"aip_veggies",
"foods",
"aip_nectar_maker",
"aip_nectar",
"aip_leaf_note",


"popcorngun",
"aip_blood_package",
"aip_fish_sword",
"aip_beehave",
"aip_oar_woodead",
"aip_dou_opal",
"aip_dou_scepter",
"aip_dou_scepter_projectile",
"aip_heal_fx",
"aip_sanity_fx",
"aip_dou_inscription",


"incinerator",
"aip_woodener",
"aip_glass_chest",


"aip_orbit",
"aip_mine_car",


"aip_dress",
"aip_armor_gambler",


"aip_chesspiece",


"dark_observer",
"dark_observer_vest",
"aip_shadow_package",
"aip_shadow_chest",
"aip_shadow_wrapper",
}



modimport("scripts/aipUtils.lua")


if
GetModConfigData("additional_chesspieces")=="open" and
GetModConfigData("open_beta")=="open" then



local AIP_DOU_SCEPTER=AddRecipeTab(
"AIP_DOU_SCEPTER",
100,
"images/inventoryimages/aip_dou_tech.xml",
"aip_dou_tech.tex",
nil,
true
)

GLOBAL.STRINGS.TABS.AIP_DOU_SCEPTER="神秘魔法"

modimport("scripts/techHooker.lua")

local inscriptions=require("utils/aip_scepter_util").inscriptions
for name,info in pairs(inscriptions) do
AddRecipe(
name,info.recipes,AIP_DOU_SCEPTER,GLOBAL.TECH.AIP_DOU_SCEPTER,
nil,nil,true,nil,nil,
"images/inventoryimages/"..name..".xml",name..".tex"
)
end
end


modimport("scripts/componentsHooker.lua")


AddMinimapAtlas("minimap/dark_observer_vest.xml")


modimport("scripts/recipeWrapper.lua")
modimport("scripts/seedsWrapper.lua")
modimport("scripts/containersWrapper.lua")
modimport("scripts/itemTileWrapper.lua")
modimport("scripts/hudWrapper.lua")
modimport("scripts/shadowPackageAction.lua")


if GetModConfigData("dev_mode")=="enabled" then
modimport("scripts/dev.lua")
end


if GetModConfigData("additional_orbit")=="open" then
modimport("scripts/mineCarAction.lua")
end



modimport("scripts/prefabsHooker.lua")



function WorldPrefabPostInit(inst)
inst:AddComponent("world_common_store")
end

if GLOBAL.TheNet:GetIsServer() or GLOBAL.TheNet:IsDedicated() then
AddPrefabPostInit("world",WorldPrefabPostInit)
end


function PlayerPrefabPostInit(inst)
if not inst.components.aipc_player_client then
inst:AddComponent("aipc_player_client")
end

if not GLOBAL.TheWorld.ismastersim then
return
end

if not inst.components.aipc_timer then
inst:AddComponent("aipc_timer")
end
end

AddPlayerPostInit(PlayerPrefabPostInit)